﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{


    /// <summary>
    /// 试验委托单
    /// </summary>
    public class Order
    {

        public Order(string _testType)
        {
             
        }

        /// <summary>
        /// 委托单号
        /// </summary>
        public string precativeNum { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string projectName { get; set; }

        /// <summary>
        /// 试验室名称
        /// </summary>
        public string trialRoom { get; set; }


        /// <summary>
        /// 设备编号
        /// </summary>
        public string equNum { get; set; }

        /// <summary>
        /// 试验名称
        /// </summary>
       


       

        /// <summary>
        /// 样品名称
        /// </summary>
        public string sampleName { get; set; }

        /// <summary>
        /// 下单日期
        /// </summary>
        public string precativeDate { get; set; }

  
        


        /// <summary>
        /// 试验代表位置
        /// </summary>
        public string behalfLocation { get; set; }

        /// <summary>
        /// 试验类型
        /// </summary>
        public TestType TestType { get; set; }

    }

    public class OrderList:List<Order>
    {
        
    }

    /// <summary>
    /// 水泥试验通用条件
    /// </summary>
    public class SNOrder : Order
    {
        public SNOrder(string _testType):base(_testType)
        {
            this.TestType = (TestType)Enum.Parse(typeof(TestType), _testType);
        }

        /// <summary>
        /// 制件日期
        /// </summary>
        public string produceDate { get; set; }

        /// <summary>
        /// 龄期
        /// </summary>
        public string curingAge { get; set; }

        /// <summary>
        /// 强度等级
        /// </summary>
        public string strengLevel { get; set; }
    }

    /// <summary>
    /// 水泥物理力学性能试验判定条件
    /// </summary>
    public class SNWLOrder : Order
    {
        public SNWLOrder(string _testType) : base(_testType)
        {
            this.TestType = (TestType)Enum.Parse(typeof(TestType), _testType);
        }


        /// <summary>
        /// 制件日期
        /// </summary>
        public string produceDate { get; set; }

        /// <summary>
        /// 龄期
        /// </summary>
        public string curingAge { get; set; }

        /// <summary>
        /// 强度等级
        /// </summary>
        public string strengLevel { get; set; }

        /// <summary>
        /// 水泥品种
        /// </summary>
        //public string snBrand { get; set; }
        public string kind { get; set; }
    }

    /// <summary>
    /// 沥青物理试验判定条件
    /// </summary>
    public class LQWLOrder
    {
        /// <summary>
        /// 沥青标号
        /// </summary>
        public string asphaltNum { get; set; }


        /// <summary>
        /// 沥青气候分区
        /// </summary>
        public string weartherRegion { get; set; }

        /// <summary>  
        /// 沥青等级
        /// </summary>
        public string asphaltLevel { get; set; }

        /// <summary>
        /// 延度试验温度值
        /// </summary>
        public string ydTemperature { get; set; }
    }
   
    /// <summary>
    /// 沥青马歇尔试验判定条件
    /// </summary>
    public class LQMXEOrder
    {
        /// <summary>
        /// 沥青混合料种类
        /// </summary>
        public string mxeType { get; set; }

        /// <summary>
        /// 公路等级
        /// </summary>
        public string roadLevel{ get; set; }

        /// <summary>
        /// 交通路段分类
        /// </summary>
        public string trafficType{ get; set; }

        /// <summary>
        /// 沥青气候分区
        /// </summary>
        public string weatherRegion{ get; set; }
    }

    /// <summary>
    /// 钢筋通用判定条件
    /// </summary>
    public class GJOrder : Order
    {
        public GJOrder(string _testType) : base(_testType)
        {
            this.TestType = (TestType)Enum.Parse(typeof(TestType), _testType);
        }


        /// <summary>
        /// 钢筋牌号
        /// </summary>
        public string steelNum { get; set; }
    }


}
